package com.hongxun.design.activitys;

import android.os.Bundle;
import android.view.View;

import com.facebook.drawee.view.SimpleDraweeView;

import com.hongxun.design.R;
import com.hongxun.design.mytools.MString;
import com.hongxun.design.utils.imageutil.UriUtil;

/**
 * Created by zerdoor_pc on 2016/5/23.
 * 典设——查看大图
 */
public class BigImageActivity extends BaseActivity {
    SimpleDraweeView bigimage;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bigimage);
        String path = getIntent().getExtras().getString(MString.PATH);
        SimpleDraweeView bigimage = (SimpleDraweeView) findViewById(R.id.bigimage);
        //MyLog.L(MString.SUCCESSED + UriUtil.getUri(path));

        bigimage.setImageURI(UriUtil.getUri(path));
        bigimage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                BigImageActivity.this.finish();
            }
        });
    }

    @Override
    protected void onDestroy() {
        bigimage=null;
        super.onDestroy();

    }
}
